package phaseTest01;

public class ThreadLocalTest {

	public static ThreadLocal<Integer> mainT;

	public static void main(String[] args) throws Exception {
		mainT = new ThreadLocal<Integer>();
		mainT.set(100);
		System.out.println("main....."+mainT.get());	
		new Thread(){
			public void run() {
				mainT.set(300);
				System.out.println("sub....."+mainT.get());
			}
		}.start();
		Thread.sleep(1000);
		System.out.println("main....."+mainT.get());
		
		
	}

}
